package com.keywaysoft.workflow.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * @author zhaojx
 */
@Data
@ApiModel(value = "启动流程传参类")
public class StartTaskDTO {
    @ApiModelProperty(value="流程定义key",required = true)
    @NotBlank(message = "流程定义key不允许为空")
    private String processKey;
    @ApiModelProperty(value="自定义参数")
    private Map<String, Object> variables;
    @NotBlank(message = "发起人不能为空")
    @ApiModelProperty(value="发起人",required = true)
    private String startUserKey;
    @ApiModelProperty(value="业务key")
    private String businessKey;
    @ApiModelProperty(value="下一步审批人，可以不指定")
    private String nextAssigne;

}
